package com.atguigu.yygh.user;
/**
 * 主启动类
 */

import com.atguigu.yygh.user.prop.WechatProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(value = "com.atguigu")
@MapperScan("com.atguigu.yygh.user.mapper")
@EnableConfigurationProperties(value = WechatProperties.class)
@EnableFeignClients(value = "com.atguigu")

public class UserMainStarter {

    public static void main(String[] args) {
        SpringApplication.run(UserMainStarter.class,args);
    }
}